#include<stdio.h>
int main()
{
	int arr1[4][3] = { {1,2,3},{4,5,6},{7,8,9},{10,11,12} };
	printf("The array before moving:\n");
	int i=0, j=0;
	for (int i = 0; i <4; i++)
	{
		for (int j = 0; j <3; j++)
		printf("%5d", arr1[i][j]);
		printf("\n");
	}
	for ( j = 0; j < 3; j++)
	{
		 int t= arr1[0][j];
		  arr1[0][j] = arr1[2][j];
		  arr1[2][j] = t;
	}
	printf("The array after moving:\n");
	for (int i = 0; i < 4; i++)
	{
		for (int j = 0; j < 3; j++)
			printf("%5d", arr1[i][j]);
		printf("\n");
	}
	return 0;
}
